<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Table</title>
  <style>
    * {
      box-sizing: content-box;
    }
    html {
      font-size: 10px;
    }
    body {
      margin: 0;
      font-size: 1.4rem;
    }

    .table-container {
      margin: 2rem;
    }

    table {
      border-collapse: collapse;
      width: 100%;
      max-width: 64rem;
      margin: 0 auto;
    }

    table caption {
      line-height: 2rem;
      padding: 1rem;
      font-size: 1.6rem;
      font-weight: bold;
    }

    th {
      text-align: left;
      padding: 1rem;
    }

    thead th {
      border-top: .2rem solid #ccc;
      border-bottom: .1rem solid #ccc;
    }

    td {
      border-bottom: .1rem solid #ccc;
      padding: 1rem;
    }

    tbody tr:nth-child(2n+1) td {
      background-color: #f7f7f7;
    }

    tbody tr:hover td {
      background-color: #eee;
      cursor: pointer;
    }

    tbody tr td:hover {
      background-color: #ddd;
    }

    .actions {
      text-align: center;
    }

    /* tbody tr td:last-child {
      background-color: #ccc;
    }

    tbody tr td:first-child {
      background-color: red;
    } */
  </style>
</head>
<body>
  <div class="table-container">
      <table>
          <caption>本三班学习名单</caption>
          <thead>
            <tr>
              <th>学号</th>
              <th>姓名</th>
              <th>年龄</th>
              <th>籍贯</th>
              <th>性别</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>0001</td>
              <td>潘韬</td>
              <td>30</td>
              <td>湖南</td>
              <td>男</td>
            </tr>
            <tr>
              <td>0002</td>
              <td>宋仲勋</td>
              <td>20</td>
              <td>湖南</td>
              <td>男</td>
            </tr>
          </tbody>
          <tfoot>
            <tr>
              <td>合计人数</td>
              <td colspan="4">2，098人</td>
            </tr>
          </tfoot>
        </table>
  </div>

  <section class="actions">
    <a href="signup.html" title="报名">
      报名
    </a>
  </section>
</body>
</html>